package com.whj.serviceorder.remote;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.request.TraceTimeRequest;
import com.whj.internalcommon.response.TerminalResponse;
import com.whj.internalcommon.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Auther: wanghaijun
 * @Date: 2023/2/18 - 02 - 18 - 19:15 
 * @Description: com.whj.serviceorder.remote
 */

@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/aroundsearch")
    ResponseResult<List<TerminalResponse>> aroundSearch(@RequestParam String center, @RequestParam Integer radius);

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/trsearch")
    ResponseResult<TrsearchResponse> trsearch(@RequestBody TraceTimeRequest traceTimeRequest);
}
